{extend name="layout/layout" /}

{block name="content"}
<div class="row">
	<div class="col-lg-12">
		<div class="box box-success">
			<div class="box-header with-border">
				<h3 class="box-title">会员详情</h3>
				<div class="box-tools pull-right">

				</div>
			</div>
			<div class="box-body">
				<form class="form-horizontal form" id="modal_new_role" method="post">
					<div class="row" style="font-size: 15px">
						<div class="">
							<div class="col-md-3">
								<img src="{$info.avatarUrl}" style="width:75px;height: 75px;" >
							</div>
							<div class="col-md-3" >
								<div class="row">
									名字：{$info.nickName}
								</div>
								<div class="row" style="padding: 10px 0">
									生日：{$info.dateOfBirth}
								</div>
								<div class="row">
									手机号：{$info.mobile}
								</div>
							</div>
							<div class="col-md-3" >
								<div class="row">
									性别：
									{if condition="($info.gender == 1)"}
									男
									{else/}
									女
									{/if}
								</div>
								<div class="row" style="padding: 10px 0">
									注册时间：{$info.create_time}
								</div>
								<div class="row">
									开通会员：{$info.memberCard.create_time}
								</div>
							</div>
							<div class="col-md-3">
								<div class="row">
									<img src="{$info.memberType.img}" style="width: 100px;height: 75px;" >
								</div>
								<div class="row">
									{$info.memType}
								</div>
							</div>
						</div>
					</div>
					<div class="">
						<div class="row">
							<table class="table table-bordered" style="margin: 20px;width: 96%">
								<tbody>
									<tr>
										<td>
											<label>账户余额</label>
											<div>{$info.balance ? $info.balance / 100 : 0} 元</div>
										</td>
										<td>
											<label>推广佣金</label>
											<div>{$info.totalIncome ? $info.totalIncome /100 : 0} 元</div>
										</td>
										<td>
											<label>会员积分</label>
											<div>{$info.integral}</div>
										</td>
										<td>
											<label>领取优惠券</label>
											<div>{$couponCount} 张</div>
										</td>
									</tr>
								</tbody>
							</table>
							<!--<div class="col-xs-3">-->
								<!--<label>账户余额</label>-->
								<!--<div>{$info.balance ? $info.balance / 100 : 0} 元</div>-->
							<!--</div>-->
							<!--<div class="col-xs-3">-->
								<!--<label>推广佣金</label>-->
								<!--<div>{$info.totalIncome ? $info.totalIncome /100 : 0} 元</div>-->
							<!--</div>-->
							<!--<div class="col-xs-3">-->
								<!--<label>会员积分</label>-->
								<!--<div>{$info.integral}</div>-->
							<!--</div>-->
							<!--<div class="col-xs-3">-->
								<!--<label>领取优惠券</label>-->
								<!--<div>{$couponCount} 张</div>-->
							<!--</div>-->
						</div>
					</div>

					<div class="" style="margin-top: 20px;">
						<div class="nav-tabs-custom">
							<ul class="nav nav-tabs">
								<li class="active">
									<a href="#accountdetail" data-id="accountdetail" data-toggle="tab" aria-expanded="true">消费记录</a>
								</li>
								<li class="">
									<a href="#refundorder" data-id="refundorder" data-toggle="tab" aria-expanded="false">售后记录</a>
								</li>
								<li class="">
									<a href="#ordercommission" data-id="ordercommission" data-toggle="tab" aria-expanded="false">推广收益</a>
								</li>
								<li class="">
									<a href="#usercommission" data-id="usercommission" data-toggle="tab" aria-expanded="false">提现记录</a>
								</li>
							</ul>
							<div class="tab-content">
								<div class="tab-pane active" id="accountdetail">
									<div class="total_num"></div>
									<table class="table table-striped table-bordered table-hover table-checkable order-column" id="data-table1">
										<thead>
										<tr>
											<th>订单号</th>
											<th>商品数量</th>
											<th>支付总额（元）</th>
											<th>手机号</th>
											<th>下单时间</th>
											<th>完成时间</th>
										</tr>
										</thead>
										<tbody>
										</tbody>
									</table>
								</div>

								<div class="tab-pane" id="refundorder">
									<div class="total_num"></div>
									<table class="table table-striped table-bordered table-hover table-checkable order-column" id="data-table2">
										<thead>
										<tr>
											<th>商品图</th>
											<th>商品名</th>
											<th>数量</th>
											<th>退款（元）</th>
											<th>申请时间</th>
											<th>完成时间</th>
										</tr>
										</thead>
										<tbody>
										</tbody>
									</table>
								</div>

								<div class="tab-pane" id="ordercommission">
									<div class="total_num"></div>
									<table class="table table-striped table-bordered table-hover table-checkable order-column" id="data-table3">
										<thead>
										<tr>
											<th>成交用户</th>
											<th>订单号</th>
											<th>成交时间</th>
											<th>成交总额（元）</th>
											<th>收益总额（元）</th>
										</tr>
										</thead>
										<tbody>
										</tbody>
									</table>
								</div>

								<div class="tab-pane" id="usercommission">
									<div class="total_num"></div>
									<table class="table table-striped table-bordered table-hover table-checkable order-column" id="data-table4">
										<thead>
										<tr>
											<th>申请时间</th>
											<th>提现金额（元）</th>
											<th>收款账户</th>
											<th>付款单号</th>
											<th>到账时间</th>
										</tr>
										</thead>
										<tbody>
										</tbody>
									</table>
								</div>
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>

<input type="hidden" class="user_id" value="{$info.id}">
<input type="hidden" class="accountdetail_url" value="{:url('admin/member/getAccountdetailList')}">
<input type="hidden" class="refundorder_url" value="{:url('admin/member/getRefundorderList')}">
<input type="hidden" class="ordercommission_url" value="{:url('admin/member/getOrdercommissionList')}">
<input type="hidden" class="usercommission_url" value="{:url('admin/member/getUsercommissionList')}">
{/block}

{block name="pagescript"}
<script src="__STATIC__/admin/pages/js/memberinfo.js" type="text/javascript"></script>
{/block}